// run: $exec > input
#include <iostream>
#include <ctime>
#include <cstdlib>

int main()
{
	std::srand(std::time(0));
	int T = 100;
	std::cout << T << '\n';
	for (int i = 0; i < T; i++) {
		std::cout << 1753 + rand() % 4000 << ' ' << rand() % 12 + 1 << ' ' << rand() % 27 + 1 << ' ' <<
			rand() % 1000000000 + 1 << '\n';
	}
}

